package PhaseoneModuletwo.TheThirdQuestion.code;

/**
 * （2）通话套餐类 特征：通话时长、短信条数、每月资费 行为: 显示所有套餐信息
 */
public class TalkServiceImpl extends Packages implements TalkService {

    private String talkTime;
    private String noteNumber;

    public TalkServiceImpl() {
    }

    public TalkServiceImpl(String talkTime, String noteNumber, String monthMoney) {
        this.talkTime = talkTime;
        this.noteNumber = noteNumber;
    }

    public String getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(String talkTime) {
        this.talkTime = talkTime;
    }

    public String getNoteNumber() {
        return noteNumber;
    }

    public void setNoteNumber(String noteNumber) {
        this.noteNumber = noteNumber;
    }

    @Override
    public void show() {
        System.out.println("通话时长:" + talkTime + "短信条数:" + noteNumber + "每月资费:" + getMonthMoney());
    }

    @Override
    public void show(String talkTime, SIMCard simCard) {
        System.out.println("通话时长:" + talkTime + "短信条数:" + noteNumber + "每月资费:" + getMonthMoney());
    }
}
